﻿using SS.Common.DBBuilder.DBDataStructure;
using SS.Net.AppGen.FormGenerators;

namespace SS.Net.AppGen.Generators
{
    /// <summary>
    /// The generator is responsible for generating window form
    /// </summary>
    public class FormGenerator: IGenerator
    {
        #region Properties

        /// <summary>
        /// Interface for generating window forms by which model
        /// </summary>
        public IFormByModelGenerator FormByModelGenerator { get; set; }

        #endregion

        #region Methods

        /// <summary>
        /// Method to generate window forms components
        /// </summary>
        /// <param name="db">Data source for generating</param>
        public void Generate(DataBase db)
        {
            this.FormByModelGenerator.Generate(db);
        }

        #endregion
    }
}
